<template>
  <div class="Login">
      <UserInfo @getUserInfo="getUserInfo"></UserInfo>
      <Commit :userInfo="userInfo"></Commit>
  </div>
</template>
<script>
import UserInfo from "@/components/Login/UserInfo"
import Commit from "@/components/Login/Commit"
export default {
  name:'Login',
  components:{
    UserInfo,Commit
  },
  data(){
    return{
      userInfo:{}
    }
  },
  methods:{
    getUserInfo(data){
      console.log(data);
      this.userInfo = data;
    }
  }
}
</script>
<style>

</style>

